#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
	int MyStrcmp(char [],char []);
	char s1[]=0,s2[]=0;
	printf("input s1:");
	scanf("%s",s1);
	printf("input s2:");
	scanf("%s",s2);
	printf("%s %s\n",s1,s2);
	printf("%d",MyStrcmp(s1,s2));
	return 0;
}

int MyStrcmp(char s1[],char s2[])
{
	int i;
	for(i=0;s1[i]!='\0'&&s2[i]!='\0';i++){
		if(s1[i]>s2[i])return 1;
		if(s1[i]<s2[i])return -1;
	}

	if(s1[i]!='\0')return 1;
	if(s2[i]!='\0')return -1;
	return 0;

}
